#include "mainwindow.h"
#include "SClib/sclib.h"
#include <QPushButton>

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
{
    // 实例化SClib
    SCLib *lib_widget = new SCLib(this);
    lib_widget->resize(200, 200);
    lib_widget->move(10,10);

    QPushButton *btn = new QPushButton("修改", this);
    btn->move(10, 200);
    connect(btn, &QPushButton::clicked, [this, lib_widget] {
        lib_widget->changeName("changed!!");
    });

}

MainWindow::~MainWindow()
{
}

